<template>
	<view :style="deviceWidth ? { width: deviceWidth + 'px' } : ''" style="margin: 0 auto;">
		<view data-v-95fece4a="" class="page-mobile" id="home">
			<view data-v-95fece4a="" style="position: fixed; top: 0px; width: 100%; z-index: 100000;"
				@click="backpage()">
				<view data-v-3d27c785="" data-v-95fece4a="" class="navbar" :style="deviceWidth ? { width: deviceWidth + 'px' } :  { width: 100 + '%' }">
					<view data-v-3d27c785="" class="nav-left">
						<svg data-v-3d27c785="" t="1717429926103" class="icon" viewBox="0 0 1024 1024" version="1.1"
							xmlns="http://www.w3.org/2000/svg" p-id="19911" width="16" height="16">
							<path data-v-3d27c785=""
								d="M350.62 514.18l392.72-395.43a32 32 0 0 0-45.41-45.1L282.66 491.78a32 32 0 0 0 0.16 45.25l415.27 412.44a32 32 0 1 0 45.1-45.41z"
								fill="#fff" p-id="19912"></path>
						</svg>
						<span data-v-3d27c785="" style="font-size: 30rpx;margin-left: 10rpx;">返回</span>
					</view>

					<view data-v-3d27c785="" class="nav-center">Google網絡瀏覽器下載</view>
					<view data-v-3d27c785="" class="nav-right"></view>
				</view>
			</view>
			<view data-v-a022a9c8="" style="height: 300rpx"></view>
			<view data-v-95fece4a="" class="contact">
				<view data-v-95fece4a="" class="contact-1">Google網絡瀏覽器下載</view>
				<view data-v-95fece4a="" class="contact-2" style="margin-bottom: 0.853rem;">该浏览器具有与生俱来的快捷、安全、定制优势</view>
				<view data-v-95fece4a="" style="margin-bottom: 0.427rem;"><svg data-v-95fece4a="" t="1717512405524"
						class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
						p-id="4349" width="52" height="52">
						<path data-v-95fece4a=""
							d="M34.338816 534.254933c0.068267 269.858133 213.674667 488.584533 476.9792 488.448 263.304533-0.068267 476.706133-218.9312 476.637867-488.789333C987.819349 264.123733 774.417749 45.397333 511.181483 45.397333 247.808683 45.397333 34.338816 264.192 34.338816 534.050133v0.2048z"
							fill="#FFFFFF" p-id="4350"></path>
						<path data-v-95fece4a=""
							d="M274.842283 471.108267l-136.533334-242.0736c163.84-211.1488 463.530667-246.306133 669.627734-78.506667a485.034667 485.034667 0 0 1 113.4592 133.5296H532.480683a173.6704 173.6704 0 0 0-21.367467-0.887467c-111.138133 0.8192-207.940267 77.824-236.270933 187.938134z"
							fill="#DD4E41" p-id="4351"></path>
						<path data-v-95fece4a=""
							d="M681.711616 354.850133h273.8176c21.7088 56.797867 32.768 117.3504 32.426667 178.312534 0.136533 267.946667-210.261333 485.922133-471.586134 488.789333l195.310934-346.248533a254.1568 254.1568 0 0 0-29.832534-320.853334h-0.136533z"
							fill="#FFCD41" p-id="4352"></path>
						<path data-v-95fece4a=""
							d="M337.920683 534.254933c-0.068267-98.030933 77.4144-177.493333 173.056-177.698133 95.573333-0.068267 173.2608 79.325867 173.397333 177.288533 0 98.030933-77.4144 177.629867-173.056 177.698134h-0.2048c-95.573333 0-172.987733-79.325867-173.124267-177.288534z"
							fill="#4C8BF5" p-id="4353"></path>
						<path data-v-95fece4a=""
							d="M576.854016 775.3728l-136.533333 243.029333C207.053483 982.152533 34.475349 776.874667 34.134016 535.005867a491.52 491.52 0 0 1 61.713067-239.616l194.56 344.4736c40.277333 87.586133 126.1568 143.701333 220.706133 144.1792 22.186667-0.273067 44.2368-3.208533 65.7408-8.738134z"
							fill="#1DA362" p-id="4354"></path>
					</svg></view>
				<view data-v-95fece4a="" class="contact-2" @click="getgoogle()">
					<view data-v-95fece4a="" class="contact-3"><svg data-v-95fece4a="" t="1717512620458" class="icon"
							viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8446"
							width="32" height="32" style="position: relative; top: 0.16rem;">
							<path data-v-95fece4a=""
								d="M544 643.2l131.2-131.2c12.8-12.8 32-12.8 44.8 0 12.8 12.8 12.8 32 0 44.8l-156.8 156.8c-25.6 25.6-64 25.6-89.6 0l-156.8-156.8c-12.8-12.8-12.8-32 0-44.8 12.8-12.8 32-12.8 44.8 0l121.6 121.6V160c0-19.2 12.8-32 32-32s32 12.8 32 32v483.2z m288-35.2c0-19.2 12.8-32 32-32s32 12.8 32 32v160c0 54.4-41.6 96-96 96h-576c-54.4 0-96-41.6-96-96v-160c0-19.2 12.8-32 32-32s32 12.8 32 32v160c0 19.2 12.8 32 32 32h576c19.2 0 32-12.8 32-32v-160z"
								fill="#ffffff" p-id="8447"></path>
						</svg><span data-v-95fece4a="" class="contact-3-download">獲取Chrome</span></view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				deviceWidth: null,
			}
		},
		mounted() {
			this.getDeviceWidth()
		},
		methods: {
			backpage() {
				uni.navigateBack()
			},
			getgoogle() {
				window.open('https://www.google.com/intl/zh-CN/chrome/')
			},
			getDeviceWidth() {
				const systemInfo = uni.getSystemInfoSync();
				const screenWidth = systemInfo.screenWidth;
			
				// 判断是否为PC设备
				if (screenWidth >= 768) {
					this.deviceWidth = 350; // 如果是PC，使用默认宽度350px
				} else {
					this.deviceWidth = null; // 如果是手机，使用实际屏幕宽度
				}
				console.log(this.deviceWidth);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page-mobile {
		height: 100%;
		box-sizing: border-box;
	}

	.navbar {
		height: 100rpx;
		background-color: #1a3d96;
		color: #fff;
		display: flex;
		align-items: center;
		justify-content: space-between;
		overflow: hidden;
		box-sizing: border-box;
	}

	.nav-left {
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.nav-center {
		font-size: 36rpx;
		text-align: center;
	}

	.nav-right {
		height: 100%;
		width: 1.6rem;
	}

	.contact .contact-1 {
		font-size: 40rpx;
		color: #333;
		font-weight: 700;
		margin-bottom: 40rpx;
	}

	.contact {
		padding: 0 .213rem;
		text-align: center;
	}

	.contact .contact-2 {
		font-size: 30rpx;
		color: #333;
		font-weight: 700;
	}

	.contact-3 {
		margin: 0 auto;
		background-color: #1a3d96;
		color: #fff;
		display: inline-block;
		text-align: center;
		border-radius: .107rem;
		padding: 6rpx 16rpx;
	}

	.contact-3-download {
		font-size: 34rpx;
	}
</style>